<?php

namespace App\Repositories;

use App\Repositories\Eloquent\Repository;
use App\Traits\SystemCodeTrait;
use App\Transverse;

class TransverseRepository extends Repository
{
    use SystemCodeTrait;

    //public $sysCodeColumn = 'code';

    function model()
    {
        return Transverse::class;
    }

    public function getApplyNewCode($year, $number)
    {
        return 'HX' . $year . str_pad($number, 4, 0, STR_PAD_LEFT);
    }

}
